<script setup>

defineProps({
  title: {
    type: String
  },
  desc: {
    type: String
  }
})
</script>

<template>
<div class="panel">
  <div class="paneltxt">
    <h3>{{ title }} <small>{{ desc }}</small></h3>
    <slot name="btn"></slot>
  </div>
  <slot></slot>
</div>
</template>

<style lang="less" scoped>
.paneltxt {
  padding: 40px 0;
  h3 {
    float: left;
    font-size: 30px;
    font-weight: 400;
    color: #333;
    small {
      font-size: 16px;
      color: #a1a1a1;
      margin-left: 20px;
    }
  }
}
</style>